import { getCaption } from './string'

/**
 * 判断数据类型
 * @param value
 * @return Object
 */
export function checkType(value: any) {
  const temp = Object.prototype.toString.call(value)
  return {
    protoType:temp.substring(1,temp.length-1),
    type: getCaption(temp.substring(0,temp.length-1),' ')
  }
}

